/*
import java.util.Random;

public class Main {


    public static void main(String[] args) {
        int i = 5;

//        //把一个基本类型的变量,转换为Integer对象
//        Integer it = new Integer(i);
//        //把一个Integer对象，转换为一个基本类型的int
//        // int i2 = it.intValue();
//
//        Integer i3 = i;//自动装箱
//        int i4 = it;//自动拆箱
//        System.out.println(i4);
        //Integer是Number的子类，所以打印true
        //  System.out.println(it instanceof Number);


        //int的最大值
        //System.out.println(Integer.MAX_VALUE);
        //int的最小值
        //System.out.println(Integer.MIN_VALUE);
        //byte b1 = 'a';
        // Byte byte1 = new Byte(b1);
        //System.out.println(byte1);
        // teest();
        // teest1();
        random1();
    }

    //生成5位随机数字符串
    private static void random1() {
        Random random = new Random();
        StringBufferdaa sb = new StringBufferdaa();
        for (int i = 1; i <= 5; i++) {
            int x = (int) (Math.random() * 10);
            // String str = Integer.toString(a);
            sb.append(x);
        }
        String st = sb.toString();
        //long aa = Integer.parseInt(st);
        System.out.println(st);
    }

    //字符串转数字
    private static void teest1() {
        String st = "111";
        int in = Integer.parseInt(st);
        System.out.println(in);
    }

    //数字转字符串
    private static void teest() {
        int i = 1;
        String a = Integer.toString(i);
        System.out.println(a);
        String b = String.valueOf(i);
        System.out.println(b);
    }

}
*/
